﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Monocle.DataProvider;

namespace Monocle.Binders
{
    public class DataProviderModelBinder : IModelBinder
    {
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            return new SqlClient(ConfigurationManager.ConnectionStrings["MonocleEntities"].ConnectionString);
        }
    }
}